package com.biz.impl;

import com.dao.HotelDao;
import com.entity.model.Hotel;
import com.biz.HotelBiz;
import com.core.AbstractBiz;
import com.entity.vo.HotelVO;
import com.util.webpage.PageData;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**
 * Created by jc on 2019/11/16.
 */
@Service
@Transactional
public class HotelBizImpl extends AbstractBiz<Hotel> implements HotelBiz {
    @Resource
    private HotelDao hotelDao;

    @Override
    public List<Hotel> findHotelList(PageData cond) {
        return hotelDao.findHotelList(cond);
    }

    @Override
    public List<Hotel> findHotelForm(PageData cond) {
        return hotelDao.findHotelForm(cond);
    }

    @Override
    public List<HotelVO> findCustomerFavoriteHotelList(Integer customerId) {
        return hotelDao.findCustomerFavoriteHotelList(customerId);
    }


    @Override
    public List<Hotel> findOpenCity() {
        return hotelDao.findOpenCity();
    }

    @Override
    public List<HotelVO> getHotelList(Map cond) {
        return hotelDao.getHotelList(cond);
    }

    @Override
    public List<Hotel> getNewThisWeek() {
        return hotelDao.getNewThisWeek();
    }

    @Override
    public List<Hotel> checkInDaysList(PageData cond) {
        return hotelDao.checkInDaysList(cond);
    }
}
